//
//  LTChatMomentRedDotManger.h
//  LTChat
//
//  Created by 俊松何 on 2017/8/15.
//  Copyright © 2017年 俊松何. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LTChatMomentRedDotMangerDelegate.h"


typedef enum : NSUInteger {
    LTMomentRedDotTypeOther     = 0,  //好友发布了文章
    LTMomentRedDotTypeSelf      = 1,  //自己的朋友圈动态
    LTSqureRedDotTypeOther      = 2,  //关注的人有发布文章
    LTSqureRedDotTypeSelf       = 3,  //自己的动态广场动态
} LTMomentRedDotType;

@interface LTMomentRedDotModel : NSObject

@property(nonatomic,assign) NSInteger num;
@property(nonatomic,assign) LTMomentRedDotType type;
@property(nonatomic,copy)   NSString *avatar;


@end


@interface LTChatMomentRedDotManger : NSObject

@property (nonatomic,strong) NSMutableArray<id<LTChatMomentRedDotMangerDelegate> >* redDotdelegateArray;

/**
 添加回调代理
 
 @param deleagte 要添加的代理
 */
-(void)addDelegate:(id<LTChatMomentRedDotMangerDelegate>)deleagte;

/**
 移除回调
 
 @param delegate 移除的代理
 */
-(void)removeDelegate:(id<LTChatMomentRedDotMangerDelegate>)delegate;


-(void)updateRedDotData:(LTMomentRedDotModel *)model;



//判断朋友圈这个tabbarItem是否显示小红点
-(BOOL)showMomentTabbarRedDot;

-(BOOL)showSquareTabbarRedDot;



//获取评论动态数量
-(NSInteger)mommentCommentNumber;
//头像
-(NSString *)mommentCommentLastAvatar;

//获取最新朋友发的动态
-(NSString *)latestMonmmentAvatar;


//获取广场评论动态数量
-(NSInteger)squreCommentNumber;
//数字广场动态最新的头像
-(NSString *)squreCommentLastAvatar;
//获取最新关注的好友发的动态
-(NSString *)latestsquretAvatar;



//清楚评论的记录
-(void)clearMommentCommentNumber;
//清楚最新朋友发的动态的记录
-(void)clearlatestMonmmentAvatar;


//清除广场关注用户发的动态记录
-(void)clearSqureFllowNumber;
//清楚广场动态消息
-(void)clearSqureMyself;



@end
